#include "stdafx.h"
#include "Language.h"
#include "IniReader.h"

#ifdef _DEBUG
#include "crtdbg.h"
#endif

// Strings
const TCHAR* Language::add_new_contact;
const TCHAR* Language::today;
const TCHAR* Language::yesterday;
const TCHAR* Language::sunday;
const TCHAR* Language::monday;
const TCHAR* Language::tuesday;
const TCHAR* Language::wednesday;
const TCHAR* Language::thursday;
const TCHAR* Language::friday;
const TCHAR* Language::saturday;
const TCHAR* Language::older;
const TCHAR* Language::seconds;
const TCHAR* Language::outgoing;
const TCHAR* Language::missed;
const TCHAR* Language::incoming;
const TCHAR* Language::unknown;
const TCHAR* Language::detailsdelwarning;
const TCHAR* Language::detailsdelwarningt;
const TCHAR* Language::outgoinghdr;
const TCHAR* Language::missedhdr;
const TCHAR* Language::incominghdr;
const TCHAR* Language::favremovewarning;
const TCHAR* Language::favremovewarningt;
const TCHAR* Language::back;
const TCHAR* Language::calldelwarning;
const TCHAR* Language::calldelwarningt;
const TCHAR* Language::picsavefailed;
const TCHAR* Language::error;
const TCHAR* Language::selectringtone;
const TCHAR* Language::ringtonesavefailed;
const TCHAR* Language::noringtone;

const TCHAR* Language::abrNumA;
const TCHAR* Language::abrNumW;
const TCHAR* Language::abrNumW2;
const TCHAR* Language::abrNumCar;
const TCHAR* Language::abrNumCo;
const TCHAR* Language::abrNumH;
const TCHAR* Language::abrNumH2;
const TCHAR* Language::abrNumM;
const TCHAR* Language::abrNumPgr;
const TCHAR* Language::abrNumRdo;

const TCHAR* Language::searchAlphabet;

void Language::Create(HWND hWnd)
{
  add_new_contact = IniReader::getString(
    IniReader::sectionLang, TEXT("addNewContact"), TEXT("Add new contact"));

  today = IniReader::getString(
    IniReader::sectionLang, TEXT("today"), TEXT("Today"));

  yesterday = IniReader::getString(
    IniReader::sectionLang, TEXT("yesterday"), TEXT("Yesterday"));

  sunday = IniReader::getString(
    IniReader::sectionLang, TEXT("sunday"), TEXT("Sunday"));

  monday = IniReader::getString(
    IniReader::sectionLang, TEXT("monday"), TEXT("Monday"));

  tuesday = IniReader::getString(
    IniReader::sectionLang, TEXT("tuesday"), TEXT("Tuesday"));

  wednesday = IniReader::getString(
    IniReader::sectionLang, TEXT("wednesday"), TEXT("Wednesday"));

  thursday = IniReader::getString(
    IniReader::sectionLang, TEXT("thursday"), TEXT("Thursday"));

  friday = IniReader::getString(
    IniReader::sectionLang, TEXT("friday"), TEXT("Friday"));

  saturday = IniReader::getString(
    IniReader::sectionLang, TEXT("saturday"), TEXT("Saturday"));

  older = IniReader::getString(
    IniReader::sectionLang, TEXT("older"), TEXT("Older"));

  seconds = IniReader::getString(
    IniReader::sectionLang, TEXT("seconds"), TEXT("Seconds"));

  outgoing = IniReader::getString(
    IniReader::sectionLang, TEXT("outgoing"), TEXT("Outgoing"));

  missed = IniReader::getString(
    IniReader::sectionLang, TEXT("missed"), TEXT("Missed"));

  incoming = IniReader::getString(
    IniReader::sectionLang, TEXT("incoming"), TEXT("Incoming"));

  unknown = IniReader::getString(
    IniReader::sectionLang, TEXT("unknown"), TEXT("Unknown"));

  detailsdelwarningt = IniReader::getString(
    IniReader::sectionLang, TEXT("detailsdelwarningt"), TEXT("Delete Contact"));

  detailsdelwarning = IniReader::getString(
    IniReader::sectionLang, TEXT("detailsdelwarning"), TEXT("Do you really want to delete this contact?"));

  outgoinghdr = IniReader::getString(
    IniReader::sectionLang, TEXT("outgoinghdr"), TEXT(" - outgoing"));

  missedhdr = IniReader::getString(
    IniReader::sectionLang, TEXT("missedhdr"), TEXT(" - missed"));

  incominghdr = IniReader::getString(
    IniReader::sectionLang, TEXT("incominghdr"), TEXT(" - incoming"));

  favremovewarningt = IniReader::getString(
    IniReader::sectionLang, TEXT("favremovewarningt"), TEXT("Remove Favorite"));

  favremovewarning = IniReader::getString(
    IniReader::sectionLang, TEXT("favremovewarning"), TEXT("Remove this contact from Favorites?"));

  back = IniReader::getString(
    IniReader::sectionLang, TEXT("back"), TEXT("Back"));

  calldelwarningt = IniReader::getString(
    IniReader::sectionLang, TEXT("calldelwarningt"), TEXT("Delete Call"));

  calldelwarning = IniReader::getString(
    IniReader::sectionLang, TEXT("calldelwarning"), TEXT("Do you really want to delete this call?"));

  picsavefailed = IniReader::getString(
    IniReader::sectionLang, TEXT("picsavefailed"), TEXT("Unable to save the picture"));

  error = IniReader::getString(
    IniReader::sectionLang, TEXT("error"), TEXT("Error"));

  selectringtone = IniReader::getString(
    IniReader::sectionLang, TEXT("selectringtone"), TEXT("Select a ringtone"));

  ringtonesavefailed = IniReader::getString(
    IniReader::sectionLang, TEXT("ringtonesavefailed"), TEXT("Unable to save the ringtone"));

  noringtone = IniReader::getString(
    IniReader::sectionLang, TEXT("noringtone"), TEXT("< Default Ringtone >"));



  abrNumA = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumA"), TEXT("a"));

  abrNumW = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumW"), TEXT("w"));

  abrNumW2 = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumW2"), TEXT("w2"));

  abrNumCar = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumCar"), TEXT("car"));

  abrNumCo = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumCo"), TEXT("co"));

  abrNumH = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumH"), TEXT("h"));

  abrNumH2 = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumH2"), TEXT("h2"));

  abrNumM = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumM"), TEXT("m"));

  abrNumPgr = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumPgr"), TEXT("pgr"));

  abrNumRdo = IniReader::getString(
    IniReader::sectionLang, TEXT("abrNumRdo"), TEXT("rdo"));



  searchAlphabet = IniReader::getString(
    IniReader::sectionLang, TEXT("searchAlphabet"), TEXT(""));
}

void Language::Destroy()
{
}
